package it.side.platform.server;

import it.side.platform.client.SideConfiguration;
import it.side.platform.client.SideService;
import it.side.platform.client.module.Module;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class SideServiceImpl extends RemoteServiceServlet implements SideService {
	private static final long serialVersionUID = 509114004663658919L;

	private SideConfiguration testConfig;
	
	@Override
	public SideConfiguration getConfiguration() {
		if (testConfig == null) {
			testConfig = new SideConfiguration();
			testConfig.setUsername("smasoni");
			testConfig.getModules().add(new Module("App1","http://www.google.it"));
			testConfig.getModules().add(new Module("App2","http://www.repubblica.it"));
			testConfig.getModules().add(new Module("App3","http://intranet"));
			testConfig.getModules().add(new Module("App4","http://www.corriere.it"));
			testConfig.getModules().add(new Module("App5","http://www.subito.it"));
		}
		return testConfig;
	}
}
